package org.example.service;

import org.example.pojo.Doctor.Department;
import org.example.pojo.Doctor.Doctor;
import org.example.pojo.Doctor.Hospital;
import org.example.pojo.Doctor.OutpatientClinic;

import java.util.List;

public interface HospitalService {
    List<Hospital> getAllHospitals();

    List<Department> getDepartmentsByHospitalId(Integer hospitalId);

    List<OutpatientClinic> getClinicsByDepartmentId(Integer departmentId);

    List<Doctor> getDoctorsByClinicId(Integer clinicId);

    void addHospital(Hospital hospital);

    void addDepartment(Department department);

    void addClinic(OutpatientClinic clinic);

    void addDoctor(Doctor doctor);

    Doctor findByUserName(String username);

    void deleteHospital(Integer hospitalId);

    void deleteDepartment(Integer departmentId);

    void deleteClinic(Integer clinicId);

    void deleteDoctor(Integer doctorId);

    String findByID(Integer doctorId);
    //获取所有部门信息
    List<Department> getAllDepartment();
    //获取所有门诊信息
    List<OutpatientClinic> getAllClinics();
    //获取所有医生信息
    List<Doctor> getAllDoctors();
    //更新医院信息
    void updateHospital(Hospital hospital);
    //更新科室信息
    void updateClinic(OutpatientClinic clinic);
    //更新部门信息
    void updateDepartment(Department department);

}
